package com.qzxy.premiumhotelsystem.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import jakarta.validation.constraints.NotNull;

@Data
@Schema(name = "VipPageDTO")
public class VipPageDTO {

    @Schema(description = "页码 (不填默认为第一页)",defaultValue = "1")
    private Integer pageNo = 1;

    @Schema(description = "每页数量 (不填默认每页15条)",defaultValue = "15")
    private Integer pageSize = 15;

    @Schema(description = "用户手机号")
    private String telephone;

    @Schema(description = "购买vip会员类型 (青铜、白银、黄金、铂金、钻石)")
    private String vipType;

    @Schema(description = "vip状态 (有效、失效)")
    private String status;

    @Schema(description = "vip生效的日期区间头 (yyyy-MM-dd格式) 默认时分秒都是00:00:00 并且两个出现得同时出现 否则不计入条件查询")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String startTimeFrom;

    @Schema(description = "vip生效的日期区间尾 (yyyy-MM-dd格式)")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String startTimeTo;

}
